package com.ysy.logistics.service.supplier;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ysy.logistics.entities.supplier.SupGoods;
import com.ysy.logistics.entities.supplier.dto.SupGoodsDto;
import com.ysy.logistics.entities.supplier.vo.SupplierQueryVO;
import com.ysy.logistics.util.PageInfo;

/**
 * @ClassDescription:
 * @Author:姚斯羽
 * @Create:2025/3/25 14:25
 **/
public interface SupGoodsService extends IService<SupGoods> {

    /**
     * 分页查询供应商商品信息
     * @param pageInfo 分页信息
     * @return 分页结果
     */
    Page<SupGoodsDto> listByPage(PageInfo<SupplierQueryVO> pageInfo);

    /**
     * 根据供应商id删除供应商商品信息
     * @param id 供应商id
     * @return 是否删除成功
     */
    boolean removeBySupId(String id);

    Page<SupGoods> listSupGoodsPage(PageInfo<SupGoods> pageInfo);
}
